package bite_11_29;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;

public class Test2 {

    public static void main(String[] args) {
        // 删除第一个字符串中出现的第二个字符串中的字符
        String str1 = "welcome to bit";
        String str2 = "come";
        // 输出 wl t bit
        ArrayList<Character> list = new ArrayList();
        for (int i = 0; i < str1.length(); i++) {
            char c = str1.charAt(i);
            if(!str2.contains(c+"")) {
                list.add(c);
            }
        }
        for (char c : list) {
            System.out.print(c);
        }

    }

    public static void main2(String[] args) {
        ArrayList<Integer> integers = new ArrayList<>();
        integers.add(1);
        integers.add(2);
        integers.add(3);
        Collections.sort(integers);
    }

    public static void main1(String[] args) {

        ArrayList<Student> students = new ArrayList<>();
        students.add(new Student("bit1","102-1",89.0));
        students.add(new Student("bit2","102-1",88.0));
        students.add(new Student("bit3","102-1",90.0));

        System.out.println(students);
    }
}
